<?php	
	$title = "Login ERP";
	$content = "content/login-content.php";
	$handler = "handle/loginHandler.php";
	
	session_start();
	unset($_SESSION['user']);
	$_SESSION['lastpage'] = "../login.php";
	if(!empty($_SESSION['user']))
	{
		$emp = $_SESSION['user'];
		$user = $emp[3].", ";
		$message = "Welcome: ";
		$logout = "Logout";
	}
	
	else if(empty($_SESSION['user']))
	{
		$message = "";
		$logout = "";
	}
	require("templateLogin.php");
?>